{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "90458d00",
   "metadata": {},
   "outputs": [],
   "source": [
    "from comutils import *"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f61fdef3",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "domain1.com\n",
      "dom-ain2.com\n",
      "sports.whh3.cn.com\n",
      "domain-test4.com\n",
      "domain5.com\n",
      "domain6.com\n",
      "domain7.com\n",
      "\n",
      "8.\n",
      "9\n"
     ]
    }
   ],
   "source": [
    "urls = ['www.domain1.com', 'https://www.dom-ain2.com','https://sports.whh3.cn.com', 'domain-test4.com','http://domain5.com', 'https://domain6.com/','# https://domain7.com','http://','https://www8./','https:/www9']\n",
    "for url in urls:\n",
    "    domain = get_main_domain_name_from_str(url)\n",
    "    print(domain)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "95387e13",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "split_urls(\"\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4603b40b",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
